﻿<UserControl xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"  
             xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
             x:Class="AuroraPlatform.MainPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             d:DesignHeight="768" d:DesignWidth="1024"
             xmlns:msControls="clr-namespace:Microsoft.Windows.Controls;assembly=Microsoft.Windows.Controls.WatermarkedTextBox"
             xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"
             xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
             xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
             xmlns:common="clr-namespace:System.Windows;assembly=System.Windows.Controls"
             xmlns:controlsPrimitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls"
             xmlns:local="clr-namespace:AuroraPlatform.View"
             xmlns:converter="clr-namespace:AuroraPlatform"
             xmlns:liquid="clr-namespace:Liquid;assembly=Liquid"
             xmlns:localCtl="clr-namespace:AuroraPlatform.Controls;assembly=AuroraPlatform.Controls"
             xmlns:vm="clr-namespace:AuroraPlatform.ViewModel;assembly=AuroraPlatform.ViewModel"
             FontFamily="Arial,Microsoft YaHei,NSimSun,SimHei" Language="zh-CN">
    <UserControl.Resources>
        <converter:LoginConverter x:Key="LoginConverter"/>
        <converter:ImportConverter x:Key="ImportConverter"/>
        <converter:UserConverter x:Key="UserConverter"/>
        <converter:EditConverter x:Key="EditConverter"/>
        <converter:DeleteConverter x:Key="DeleteConverter"/>
        <converter:PrintConverter x:Key="PrintConverter"/>
        <converter:BatchDeleteConverter x:Key="BatchDeleteConverter"/>
        <converter:SearchConverter x:Key="SearchConverter"/>
        <converter:ViewConverter x:Key="ViewConverter"/>
        <converter:SignMainConverter x:Key="SignMainConverter"/>
        <converter:SignConverter x:Key="SignConverter"/>
        <converter:SignTextConverter x:Key="SignTextConverter"/>
        <converter:SignWeightConverter x:Key="SignWeightConverter"/>
        <converter:DisplayControler x:Key="DisplayControler"/>
        <converter:CartCountConverter x:Key="CartCountConverter"/>
        
        
    </UserControl.Resources>
    <controlsToolkit:BusyIndicator x:Name="busy">
        <Grid x:Name="Root">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="250" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <!--Background Image-->
            <!--<Viewbox Grid.ColumnSpan="2" Grid.RowSpan="3" VerticalAlignment="Top" HorizontalAlignment="Left" StretchDirection="Both" Stretch="Uniform">
            <Image Source="Images/background.png"/>
        </Viewbox>-->
            <!--Silverlight Toolkit Logo-->
            <Grid Grid.ColumnSpan="2" Background="#9C9C9C" x:Name="LoginedGrid">
                <Viewbox MouseLeftButtonDown="Viewbox_MouseLeftButtonDown" Stretch="Uniform" Height="Auto" VerticalAlignment="Top" HorizontalAlignment="Left" Width="170" Margin="20,10,0,0" Cursor="Hand">
                    <Image Source="Images/LeftLogo.png"/>
                </Viewbox>

                <Viewbox MouseLeftButtonDown="Viewbox_MouseLeftButtonDown" Stretch="Uniform" Height="Auto" VerticalAlignment="Top" HorizontalAlignment="Right" Width="170" Margin="0,10,20,0" Cursor="Hand">
                    <Image Source="Images/RightLogo.png"/>
                </Viewbox>
            </Grid>

            <Grid Grid.Row="1" Grid.ColumnSpan="2" Height="40" x:Name="ToolBar">
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
                    <HyperlinkButton  x:Name="BackLink"
                                  IsEnabled="False"
                                  Content="&lt;Back"
                                  VerticalAlignment="Center"
                                  HorizontalAlignment="Left"
                                  Margin="25,0,5,0"
                                  FontSize="13"/>
                    <HyperlinkButton x:Name="NextLink"
                                  IsEnabled="False"
                                  Content="Next&gt;"
                                  HorizontalAlignment="Left"
                                  VerticalAlignment="Center"
                                  FontSize="13"/>
                </StackPanel>

                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" x:Name="LoginedPanel">
                    <Button Width="75" Height="23" Margin="0,0,10,0" x:Name="ViewBtn" Visibility="{Binding TargetPage, Converter={StaticResource ViewConverter}}">
                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                            <Image Source="Images/View.png" Width="14" Height="14" VerticalAlignment="Center"/>
                            <TextBlock Text="查    看" Margin="5,0,0,0" VerticalAlignment="Center"/>
                        </StackPanel>
                    </Button>

                    <Button Width="75" Height="23" Margin="0,0,10,0" x:Name="EditBtn" Visibility="{Binding TargetPage, Converter={StaticResource EditConverter}}">
                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                            <Image Source="Images/Edit.png" Width="14" Height="14" VerticalAlignment="Center"/>
                            <TextBlock Text="修    改" Margin="5,0,0,0" VerticalAlignment="Center"/>
                        </StackPanel>
                    </Button>
                    <Button Width="75" Height="23" Margin="0,0,10,0" x:Name="AddBtn" Visibility="{Binding TargetPage, Converter={StaticResource ImportConverter}}">
                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                            <Image Source="Images/Add.png" Width="14" Height="14" VerticalAlignment="Center"/>
                            <TextBlock Text="新    增" Margin="5,0,0,0" VerticalAlignment="Center"/>
                        </StackPanel>
                    </Button>
                    <Button Width="75" Height="23" Margin="0,0,10,0" x:Name="DeleteBtn" Visibility="{Binding TargetPage, Converter={StaticResource DeleteConverter}}">
                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                            <Image Source="Images/Delete.png" Width="14" Height="14" VerticalAlignment="Center"/>
                            <TextBlock Text="删    除" Margin="5,0,0,0" VerticalAlignment="Center"/>
                        </StackPanel>
                    </Button>

                    <liquid:DropDown x:Name="dropDown"  Margin="0,0,10,0" Width="110" Height="23" VerticalAlignment="Center" Visibility="{Binding TargetPage, Converter={StaticResource BatchDeleteConverter}}">
                        <liquid:DropDown.SelectedItemContent>
                            <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                <Image Source="Images/BatchDelete.png" Width="14" Height="14" VerticalAlignment="Center" Margin="5,0,0,0"/>
                                <TextBlock Text="批量删除" Margin="5,0,0,0" VerticalAlignment="Center" x:Name="BatchText"/>
                            </StackPanel>
                        </liquid:DropDown.SelectedItemContent>
                        <ListBox Width="110" x:Name="ListBox" SelectionChanged="ListBox_SelectionChanged">
                            <ListBoxItem Height="25">
                                <TextBlock Text="设定删除模式" VerticalAlignment="Center"/>
                            </ListBoxItem>
                            <ListBoxItem Height="25">
                                <TextBlock Text="取消删除模式" VerticalAlignment="Center"/>
                            </ListBoxItem>
                            <ListBoxItem Height="25">
                                <TextBlock Text="选择所有" VerticalAlignment="Center"/>
                            </ListBoxItem>
                            <ListBoxItem Height="25">
                                <TextBlock Text="清除选择" VerticalAlignment="Center"/>
                            </ListBoxItem>
                            <ListBoxItem Height="25">
                                <TextBlock Text="批量删除" Foreground="Red" FontWeight="Bold" VerticalAlignment="Center"/>
                            </ListBoxItem>
                        </ListBox>
                    </liquid:DropDown>

                    <Button  Width="100" Height="23"  Margin="0,0,10,0" x:Name="ExportExcelBtn" Visibility="{Binding TargetPage, Converter={StaticResource PrintConverter}}">
                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" >
                            <Image Source="Images/ExportExcel.png" Width="14" Height="14" VerticalAlignment="Center"/>
                            <TextBlock Text="导出到Excel" Margin="5,0,0,0" VerticalAlignment="Center"/>
                        </StackPanel>
                    </Button>
                    <Button  Width="100" Height="23"  Margin="0,0,10,0" x:Name="ExportPdfBtn" Visibility="{Binding TargetPage, Converter={StaticResource PrintConverter}}">
                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" >
                            <Image Source="Images/pdf.png" Width="14" Height="14" VerticalAlignment="Center"/>
                            <TextBlock Text="导出到PDF" Margin="5,0,0,0" VerticalAlignment="Center"/>
                        </StackPanel>
                    </Button>
                    <Button  Width="100" Height="23"  Margin="0,0,10,0" x:Name="CartBtn" Visibility="{Binding TargetPage, Converter={StaticResource DisplayControler}}">
                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" >
                            <Image Source="Images/cart.png" Width="14" Height="14" VerticalAlignment="Center"/>
                            <TextBlock Text="我的灯具车" Margin="5,0,0,0" VerticalAlignment="Center"/>
                            <TextBlock Margin="3,0,0,0" Text="{Binding CartCount, Converter={StaticResource CartCountConverter}}" Foreground="Red" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
                        </StackPanel>
                    </Button>
                    <Button Click="Import_Click" Width="100" Height="23"  Margin="0,0,10,0" x:Name="ImportBtn" Visibility="{Binding TargetPage, Converter={StaticResource ImportConverter}}">
                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" >
                            <Image Source="Images/FormRegionOpen.png" Width="14" Height="14" VerticalAlignment="Center"/>
                            <TextBlock Text="导入灯具包" Margin="5,0,0,0" VerticalAlignment="Center"/>
                        </StackPanel>
                    </Button>
                    <Button Width="95" Height="23" x:Name="UserBtn" Margin="0,0,10,0" Visibility="{Binding TargetPage, Converter={StaticResource UserConverter}}">
                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" >
                            <Image Source="Images/User.png" Width="14" Height="14" VerticalAlignment="Center"/>
                            <TextBlock Text="用户管理" Margin="5,0,0,0" VerticalAlignment="Center"/>
                        </StackPanel>
                    </Button>
                    <Button Width="75" Height="23" x:Name="LoginBtn" Click="LoginBtn_Click" Margin="0,0,10,0">
                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" >
                            <Image Source="Images/Login.png" Width="14" Height="14" VerticalAlignment="Center"/>
                            <TextBlock Text="{Binding User, Converter={StaticResource LoginConverter}}" Margin="5,0,0,0" VerticalAlignment="Center"/>
                        </StackPanel>
                    </Button>
                </StackPanel>


                <Border Height="2" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" BorderBrush="#BFBFBF" BorderThickness="0, 0, 0, 2"/>
            </Grid>

            <ScrollViewer Grid.Row="2" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"  BorderBrush="Transparent" BorderThickness="0" IsTabStop="False" TabNavigation="Once" Padding="0" Margin="0">
                <Grid Background="#EAEAEA" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" x:Name="QueryGrid">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <StackPanel>
                        <StackPanel.Resources>
                            <Style TargetType="localCtl:ExtendedComboBox" x:Key="ComboBoxStyle">
                                <Setter Property="VerticalAlignment" Value="Center"/>
                                <Setter Property="HorizontalAlignment" Value="Center"/>
                                <Setter Property="Width" Value="210"/>
                                <Setter Property="Height" Value="23"/>
                                <Setter Property="Margin" Value="0, 10, 0, 0"/>
                                <Setter Property="SelectedValuePath" Value="itemID"/>
                                <Setter Property="DisplayMemberPath" Value="itemName"/>
                            </Style>
                            <Style TargetType="msControls:WatermarkedTextBox" x:Key="TextBoxStyle"  BasedOn="{StaticResource WatermarkedTextBoxStyle}">
                                <Setter Property="VerticalAlignment" Value="Center"/>
                                <Setter Property="HorizontalAlignment" Value="Center"/>
                                <Setter Property="Width" Value="210"/>
                                <Setter Property="Height" Value="23"/>
                                <Setter Property="Margin" Value="0, 10, 0, 0"/>
                            </Style>
                        </StackPanel.Resources>
                        <msControls:WatermarkedTextBox IsEnabled="{Binding User, Converter={StaticResource SearchConverter}}" TabIndex="1" Watermark="产品系列" Margin="0,30,0,0" x:Name="ProductName" Style="{StaticResource TextBoxStyle}"/>
                        <localCtl:ExtendedComboBox IsEnabled="{Binding ElementName=ProductName, Path=IsEnabled}" TabIndex="2" DisplayMemberPath="ItemName" NotSelectedText="使用场所" x:Name="UseArea" Style="{StaticResource ComboBoxStyle}"/>
                        <localCtl:ExtendedComboBox IsEnabled="{Binding ElementName=ProductName, Path=IsEnabled}" TabIndex="3" DisplayMemberPath="ItemName" NotSelectedText="产品分类" x:Name="ProdType" Style="{StaticResource ComboBoxStyle}"/>
                        <msControls:WatermarkedTextBox  IsEnabled="{Binding ElementName=ProductName, Path=IsEnabled}" TabIndex="4" Watermark="产品型号" x:Name="ProductVersion" Style="{StaticResource TextBoxStyle}"/>
                        <localCtl:ExtendedComboBox IsEnabled="{Binding ElementName=ProductName, Path=IsEnabled}" TabIndex="5" DisplayMemberPath="ItemName" NotSelectedText="产品品牌" x:Name="ProductLable" Style="{StaticResource ComboBoxStyle}">
                            <localCtl:ExtendedComboBox.Resources>
                                <DataTemplate DataType="vm:SignModel">
                                    <Grid>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="*"/>
                                            <ColumnDefinition Width="20"/>
                                        </Grid.ColumnDefinitions>
                                        <TextBlock Width="180" Text="{Binding Name}" FontWeight="{Binding IsMain, Converter={StaticResource SignWeightConverter}}" Foreground="{Binding IsMain, Converter={StaticResource SignTextConverter}}" VerticalAlignment="Center" HorizontalAlignment="Left"/>
                                        <Button Visibility="{Binding IsMain, Converter={StaticResource SignConverter}}" Style="{StaticResource TransparentButton}" Click="ChangeMainClicked" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="1">
                                            <Image Source="/AuroraPlatform;component/Images/Main.png" Stretch="None" Width="16" Height="16"></Image>
                                        </Button>
                                        <Button Visibility="{Binding IsMain, Converter={StaticResource SignMainConverter}}" Style="{StaticResource TransparentButton}" Click="ChangeNormalClicked" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="1">
                                            <Image Source="/AuroraPlatform;component/Images/WindowClose.png" Stretch="None"  Width="16" Height="16"></Image>
                                        </Button>
                                    </Grid>
                                </DataTemplate>
                            </localCtl:ExtendedComboBox.Resources>
                        </localCtl:ExtendedComboBox>
                        <localCtl:ExtendedComboBox IsEnabled="{Binding ElementName=ProductName, Path=IsEnabled}" TabIndex="6"  DisplayMemberPath="ItemName" NotSelectedText="光源种类" x:Name="LightingType" Style="{StaticResource ComboBoxStyle}"/>
                        <StackPanel Orientation="Horizontal" Margin="0, 10, 0, 0" HorizontalAlignment="Center">
                            <TextBlock Text="光源功率:" Foreground="Gray" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2,0,0,0"/>
                            <toolkit:NumericUpDown IsEnabled="{Binding ElementName=ProductName, Path=IsEnabled}" x:Name="LSPowerStart" Margin="2,0,0,0" Minimum="0" Maximum="999999999" Width="40" VerticalAlignment="Bottom" HorizontalAlignment="Left" Style="{StaticResource NumericUpDownStyle}"/>
                            <TextBlock Text=" W 至 " Foreground="Gray" HorizontalAlignment="Left" VerticalAlignment="Center"/>
                            <toolkit:NumericUpDown IsEnabled="{Binding ElementName=ProductName, Path=IsEnabled}" x:Name="LSPowerEnd" Minimum="0" Width="40" Maximum="999999999" VerticalAlignment="Bottom" HorizontalAlignment="Left" Style="{StaticResource NumericUpDownStyle}"/>
                            <TextBlock Text=" W 之间" Foreground="Gray" HorizontalAlignment="Left" VerticalAlignment="Center"/>
                        </StackPanel>

                        <localCtl:ExtendedComboBox IsEnabled="{Binding ElementName=ProductName, Path=IsEnabled}" TabIndex="8" NotSelectedText="色温" x:Name="LSTemperature" Style="{StaticResource ComboBoxStyle}">
                            <ComboBoxItem Content="全部"/>
                            <!--<ComboBoxItem Content="暖 &lt;3300K">-->
                            <ComboBoxItem>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <TextBlock Width="40" Text="暖"/>
                                    <TextBlock Text="&lt; 3300K"/>
                                </StackPanel> 
                            </ComboBoxItem>
                            <ComboBoxItem>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <TextBlock Width="40" Text="中性白"/>
                                    <TextBlock Text="3300K - 5000K"/>
                                </StackPanel>
                            </ComboBoxItem>
                            <ComboBoxItem>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <TextBlock Width="40" Text="冷"/>
                                    <TextBlock Text="&gt; 5000K"/>
                                </StackPanel>
                            </ComboBoxItem>
                        </localCtl:ExtendedComboBox>
                        <localCtl:ExtendedComboBox TabIndex="9" IsEnabled="{Binding ElementName=ProductName, Path=IsEnabled}" NotSelectedText="显色性" x:Name="LSCRI" Style="{StaticResource ComboBoxStyle}">
                            <ComboBoxItem Content="全部"/>
                            <ComboBoxItem>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <TextBlock Width="65" Text="显色性"/>
                                    <TextBlock Text="Ra &lt;= 79"/>
                                </StackPanel>
                            </ComboBoxItem>
                            <ComboBoxItem>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <TextBlock Width="65" Text="普通显色性"/>
                                    <TextBlock Text="Ra 80 - 89"/>
                                </StackPanel>
                            </ComboBoxItem>
                            <ComboBoxItem>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <TextBlock Width="65" Text="高显色性"/>
                                    <TextBlock Text="Ra &gt;= 90"/>
                                </StackPanel>
                            </ComboBoxItem>
                        </localCtl:ExtendedComboBox>
                        <localCtl:ExtendedComboBox TabIndex="10" IsEnabled="{Binding ElementName=ProductName, Path=IsEnabled}" NotSelectedText="灯具配光" x:Name="Angle" Style="{StaticResource ComboBoxStyle}">
                            <ComboBoxItem Content="全部"/>
                            <ComboBoxItem>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <TextBlock Width="25" Text="SS"/>
                                    <TextBlock Width="50" Text="超窄配光"/>
                                    <TextBlock Text="&lt;= 8"/>
                                </StackPanel>
                            </ComboBoxItem>
                            <ComboBoxItem>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <TextBlock Width="25" Text="S"/>
                                    <TextBlock Width="50" Text="窄配光"/>
                                    <TextBlock Text="9 - 15"/>
                                </StackPanel>
                            </ComboBoxItem>
                            <ComboBoxItem>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <TextBlock Width="25" Text="M"/>
                                    <TextBlock Width="50" Text="中配光"/>
                                    <TextBlock Text="16 - 25"/>
                                </StackPanel>
                            </ComboBoxItem>
                            <ComboBoxItem>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <TextBlock Width="25" Text="F"/>
                                    <TextBlock Width="50" Text="宽配光"/>
                                    <TextBlock Text="26 - 39"/>
                                </StackPanel>
                            </ComboBoxItem>
                            <ComboBoxItem>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <TextBlock Width="25" Text="WF"/>
                                    <TextBlock Width="50" Text="超宽配光"/>
                                    <TextBlock Text="&gt;= 40"/>
                                </StackPanel>
                            </ComboBoxItem>
                            <ComboBoxItem>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <TextBlock Width="25" Text="WW"/>
                                    <TextBlock Width="50" Text="洗墙配光"/>
                                </StackPanel>
                            </ComboBoxItem>
                            <ComboBoxItem>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <TextBlock Width="25" Text="ST"/>
                                    <TextBlock Width="50" Text="道路配光"/>
                                </StackPanel>
                            </ComboBoxItem>
                            <ComboBoxItem Content="其他非对称配光"/>
                        </localCtl:ExtendedComboBox>
                        <localCtl:ExtendedComboBox IsEnabled="{Binding ElementName=ProductName, Path=IsEnabled}" TabIndex="11" DisplayMemberPath="ItemName" NotSelectedText="安装方式" x:Name="SetupType" Style="{StaticResource ComboBoxStyle}"/>
                        <StackPanel Orientation="Horizontal" Margin="0, 10, 0, 0" HorizontalAlignment="Center">
                            <TextBlock Text="市场价格:" Foreground="Gray" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2,0,0,0"/>
                            <toolkit:NumericUpDown IsEnabled="{Binding ElementName=ProductName, Path=IsEnabled}" x:Name="MarketPriceStart" Margin="2,0,0,0" Minimum="0" Maximum="999999999" Width="40" VerticalAlignment="Bottom" HorizontalAlignment="Left" Style="{StaticResource NumericUpDownStyle}"/>
                            <TextBlock Text=" 元 至 " Foreground="Gray" HorizontalAlignment="Left" VerticalAlignment="Center"/>
                            <toolkit:NumericUpDown IsEnabled="{Binding ElementName=ProductName, Path=IsEnabled}" x:Name="MarketPriceEnd" Minimum="0" Maximum="999999999" Width="40" VerticalAlignment="Bottom" HorizontalAlignment="Left" Style="{StaticResource NumericUpDownStyle}"/>
                            <TextBlock Text=" 元 之间" Foreground="Gray" HorizontalAlignment="Left" VerticalAlignment="Center"/>
                        </StackPanel>

                        <StackPanel Orientation="Horizontal" Margin="0,10,0,0" HorizontalAlignment="Center">
                            <Button TabIndex="13"  Width="75" Height="23" x:Name="ClearBtn" IsEnabled="{Binding ElementName=ProductName, Path=IsEnabled}">
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <Image Source="Images/Clear.png" Width="14" Height="14" VerticalAlignment="Center"/>
                                    <TextBlock Text="清    除" Margin="5,0,0,0" VerticalAlignment="Center"/>
                                </StackPanel>
                            </Button>
                            <Button Margin="20,0,0,0" TabIndex="13"  Width="75" Height="23" x:Name="SearchBtn" IsEnabled="{Binding ElementName=ProductName, Path=IsEnabled}">
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <Image Source="Images/Search.png" Width="14" Height="14" VerticalAlignment="Center"/>
                                    <TextBlock Text="搜    索" Margin="5,0,0,0" VerticalAlignment="Center"/>
                                </StackPanel>
                            </Button>
                        </StackPanel>
                       
                    </StackPanel>

                    <Image Source="Images/Rights.png" Stretch="None" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="1"/>
                </Grid>
            </ScrollViewer>


            <controls:GridSplitter Grid.Column="1" Grid.Row="2" Width="1" VerticalAlignment="Stretch" HorizontalAlignment="Left" Background="#CFCFCF"/>
            <!-- Display Area -->
            <Border Grid.Row="2" Grid.Column="1" Margin="1,0,5,0" Padding="1,1,1,1" BorderThickness="0" Background="White">
                <sdk:Frame JournalOwnership="OwnsJournal" x:Name="Navigation"/>
            </Border>
        </Grid>
    </controlsToolkit:BusyIndicator>
</UserControl>
